package com.yk.pojo;

import jakarta.persistence.*;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data

public class Article {


    public static final Integer PENDING = 1;
    public static final Integer APPROVED = 2;
    public static final Integer REJECTED = 3;

    private Integer id;


    private Integer userId;


    private Integer categoryId;


    private String title;


    private String content;

//1-待审核 2-审核通过 3-审核不通过
    private Integer status = PENDING;


    private Integer clicks = 0;


    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private List<Comment> comments;


}